package com.sanyu.controller.repairman;

import com.sanyu.pojo.dto.WorkRecordDTO;
import com.sanyu.pojo.vo.WorkRecordVO;
import com.sanyu.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/workRecord")
@Api("维修APP/工单相关接口")
public class WorkRecordController {

    @PutMapping("/add")
    @ApiOperation("上传新增工单")
    public Result add(@RequestBody WorkRecordDTO workRecordDTO){
        return Result.success();
    }

    @GetMapping("/{id}")
    @ApiOperation("根据ID获取工单详细信息")
    public Result<WorkRecordVO> detail(@PathVariable Long id){
        WorkRecordVO workRecordVO = new WorkRecordVO();
        return Result.success(workRecordVO);
    }

}
